//
//  BDShopDetailModel.m
//  BadBoy
//
//  Created by wen on 2017/3/16.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDShopDetailModel.h"

@implementation BDShopDetailModel

+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"content":@"content.content",
             @"score":@"statistic.score",
             @"evaluation":@"statistic.evaluation",
             @"comment":@"statistic.comment"};
}

+ (NSDictionary *)objectClassInArray{
    return @{@"managers":[BDShopManagerModel class]};
}

//- (BDShopType)type{
//    if (_type >= BDShopTypeJianshen) {
//        return BDShopTypeQipai;
//    }
//    return _type;
//}

//- (CGFloat)distance{
//    return [self distanceBetweenOrderBy:self.latitude :[[[NSUserDefaults standardUserDefaults] objectForKey:@"currentLatitude"] doubleValue] :self.longitude :[[[NSUserDefaults standardUserDefaults] objectForKey:@"currentLongitude"] doubleValue]];
//}
//
//-(double)distanceBetweenOrderBy:(double) lat1 :(double) lat2 :(double) lng1 :(double) lng2{
//    
//    CLLocation *curLocation = [[CLLocation alloc] initWithLatitude:lat1 longitude:lng1];
//    
//    CLLocation *otherLocation = [[CLLocation alloc] initWithLatitude:lat2 longitude:lng2];
//    
//    double  distance  = [curLocation distanceFromLocation:otherLocation];
//    
//    return  distance / 1000.0;
//}

@end
